home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr28
/
tfwclean.zip
/
TFWCLEAN.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1995-02-01
|
1KB
|
39 lines
{$A+,B-,D-,E+,F-,G-,I-,L-,N-,O-,P-,Q-,R-,S-,T-,V+,X+,Y-}
{$M 4096,0,16384}
program CleanErUpEr;
Uses CRT, DOS, Strings;
procedure DeleteIt(p: pChar);
var
f: file;
begin
assign(f, p);
setFAttr(f, 0);
erase(f);
if IOResult = 0 then ; { just to clear the error, else it fails and won't continue }
end;
var
CurDrive: array[0..3] of char;
FileName: array[0..144] of char;
Tmp: string;
begin
writeln('Removing Telix Registration Sentry from v1.01b and prior...');
GetDir(0,Tmp);
StrCopy(CurDrive, 'C:\');
CurDrive[0] := Tmp[1];
DeleteIt(StrCat(StrCopy(FileName, CurDrive), 'UBUYTHIS.NOW'));
DeleteIt(StrCat(StrCopy(FileName, CurDrive), 'SWCOWIYB.SYS'));
DeleteIt(StrCat(StrCat(StrCopy(FileName, CurDrive),'WIN\SYSTEM\'),'VDTMCP73.386'));
DeleteIt(StrCat(StrCat(StrCopy(FileName, CurDrive), 'WINDOWS\SYSTEM\'), 'VDTMCP73.386'));
StrPCopy(FileName, GetEnv('TEMP'));
if FileName[StrLen(FileName)-1] <> '\' then StrCat(FileName, '\');
DeleteIt(StrCat(FileName, '~TBM439E.TMP'));
end.